import pathlib
import yaml


def load_yaml(file_name: str):
    file_path = pathlib.Path(__file__).parent.parent / "config" / file_name
    with open(file_path, encoding="utf-8") as f:
        return yaml.safe_load(f)
